package com.han.fu.common.utils;

import com.han.fu.common.snowflake.Snowflake;

/**
 * ID工具类
 *
 * @author: star.zhu
 * @date: 2021-07-31
 */
public class IdUtil {
    private static final Snowflake snowflake = new Snowflake();

    private IdUtil() {
    }

    public static String generate() {
        return String.valueOf(snowflake.nextId());
    }
}
